﻿#foreach($u in $TableInfos)
#beforeall 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="FrameWork.Web.Web.Manager.NormalApp.${u.TabName}Manager.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <%=FrameWork.Forum.PageInfos.GetAdminCss %>
    <%=FrameWork.Forum.PageInfos.GetAdminJs %>
</head>
<body>
    <form id="form1" runat="server">


#each  
    <FrameWorkWebControls:HeadMenuWebControls runat="server" HeadOPTxt="$u.TabCaption列表" HeadTitleTxt="$u.TabCaption管理">
      <FrameWorkWebControls:HeadMenuButtonItem ButtonName="$u.TabCaption" ButtonPopedom="Add" ButtonUrl="Manager.aspx?cmd=add"
            ButtonUrlType="Href" ButtonVisible="True" />
    </FrameWorkWebControls:HeadMenuWebControls>
    <FrameWorkWebControls:TabOptionWebControls runat="server"  ID="TabOptionWebControls1">
      <FrameWorkWebControls:TabOptionItem id="TabOptionItem1" runat="server" Tab_Name="$u.TabCaption列表">
            <asp:GridView id="GridView1" runat="server" AutoGenerateColumns="false">
                <Columns>
#foreach($c in $u.ColumnInfos)  
#beforeall
#each 
#if($c.IsPK=="True")
                <asp:HyperLinkField HeaderText="$c.DeText" DataTextField="$c.ColumnName" DataNavigateUrlFields="$c.ColumnName" DataNavigateUrlFormatString="Manager.aspx?eid={0}&cmd=look" /> 
#else
                <asp:BoundField HeaderText="$c.DeText" DataField="$c.ColumnName"/>
#end
#afterall
#end 
                </Columns>
            </asp:GridView>
<FrameWorkWebControls:AspNetPager runat="server" ID="AspNetPager1" OnPageChanged="AspNetPager1_PageChanged"></FrameWorkWebControls:AspNetPager>
            </FrameWorkWebControls:TabOptionItem>
 <FrameWorkWebControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
    <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
             #foreach($c in $u.ColumnInfos)  
#beforeall
#each 
#if($c.IsPK!="True")
                <tr>
                    <td class="table_body">
                        $c.DeText</td>
                    <td class="table_none">
                        <asp:TextBox ID="tb$c.ColumnName" runat="server" CssClass="text_input"></asp:TextBox></td>
                </tr>
#end
#afterall
#end 
#end
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="btnSearch" runat="server" CssClass="button_bak" Text="查询" OnClick="btnSearch_Click" /></td>
                </tr>
            </table>
    </FrameWorkWebControls:TabOptionItem>           
    </FrameWorkWebControls:TabOptionWebControls>
    </form>
</body>
</html>
